package com.lw.ai.dto.book;

import com.fasterxml.jackson.annotation.JsonView;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.math.BigDecimal;
@Data
@AllArgsConstructor
public class BookDTO {

    @JsonView(BookViews.UserView.class)
    private String number;
    @JsonView(BookViews.UserView.class)
    private String bookName;
    @JsonView(BookViews.AdminView.class)  // 价格只给管理员
    private Double price;
    @JsonView(BookViews.UserView.class)
    private String publish;

}

